from django.db import models

# Create your models here.
class FrontUser(models.Model):
    username = models.CharField(max_length=100)
    def __str__(self):
        return "<user:(id:%s;username:%s)>" % (self.id,self.username)


class UserExtension(models.Model):
    school = models.CharField(max_length=100)
    user = models.OneToOneField("FrontUser",on_delete=models.CASCADE,related_name="extension")
    def __str__(self):
        return "<userextension:(id:%s;school:%s;user_id:%s)>" % (self.id,self.school,self.user_id)





